import http from '@/utils/http'
/**
 * 填写订单列表
 */
export function prelist () {
  return http({
    url: '/member/order/pre'
  })
}
/**
 * 创建预付订单
 */
export function getcaeatapi (data) {
  return http({
    method: 'POST',
    url: '/member/order',
    data
  })
}
/**
 * 获取立即购买订单
 */
export function nowprelist (data) {
  return http({
    url: '/member/order/pre/now',
    data
  })
}
/**
 * 获取订单详情
 */
export function detailpricelist (id) {
  return http({
    url: `/member/order/${id}`
  })
}
/**
 * 支付
 */
export function getPayWxPayMiniPay (data) {
  return http({
    url: '/pay/mock',
    data
  })
}
